package com.ruoyi.household.mapper;

import com.ruoyi.household.domain.Household;
import com.ruoyi.household.dto.HouseholdDto;

import java.util.List;


/**
 * 住户管理CRUDMapper接口
 *
 * @author ruoyi
 * @date 2022-10-01
 */
public interface HouseholdMapper
{
    /**
     * 查询住户管理CRUD
     *
     * @param id 住户管理CRUD主键
     * @return 住户管理CRUD
     */
    public Household selectHouseholdById(Long id);

    /**
     * 查询住户管理CRUD列表
     *
     * @param household 住户管理CRUD
     * @return 住户管理CRUD集合
     */
    public List<Household> selectHouseholdList(Household household);

    /**
     * 新增住户管理CRUD
     *
     * @param household 住户管理CRUD
     * @return 结果
     */
    public int insertHousehold(Household household);

    /**
     * 修改住户管理CRUD
     *
     * @param household 住户管理CRUD
     * @return 结果
     */
    public int updateHousehold(Household household);

    /**
     * 删除住户管理CRUD
     *
     * @param id 住户管理CRUD主键
     * @return 结果
     */
    public int deleteHouseholdById(Long id);

    /**
     * 批量删除住户管理CRUD
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHouseholdByIds(Long[] ids);

    List<Household> getHousehold(String name);

    Household getHouseholdName(String householdName);

    Household getUser(Long id);
}
